package com.cian.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="用于查看历史记录的商品对象", description="专门用于商品销售历史的类")
public class GoodsHistoryDTO {
    @ApiModelProperty(value = "商品的销售总额")
    private Double value;

    @ApiModelProperty(value = "商品名")
    private String name;

    public GoodsHistoryDTO(){}

    public GoodsHistoryDTO(String coName, Double coPrice){
        this.name = coName;
        this.value = coPrice;
    }
}
